You can end individual or all IM interactions.
If you click End IM in the IM window, the system ends the relevant IM interaction. However, if you click End IM icon in the work space, the system closes all the IM interactions in the IM window.